#include "threadpool.hpp"
#include <stdlib.h>
#define RandSet() srand((unsigned long)time(nullptr) ^ getpid() ^ 0x171237 ^ rand() % 1234)
int main()
{
    RandSet();
    threadpool<task> tp;

#ifdef TASK_ONE
    while (true)
    {
        sleep(1);
        int a = rand() % 100;
        int b = rand() % 100;
        char op = operation[rand() % 4];
        task p_task(a, b, op);
        tp.append(p_task);
        std::cout << "分配任务:" << p_task.msg << std::endl;
    }
#endif

    return 0;
}